cmake_minimum_required(VERSION 3.15 FATAL_ERROR)

project(network LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Boost 1.66 REQUIRED COMPONENTS)

message("BOOST_INCLUDEDIR: ${BOOST_INCLUDEDIR}")

file (GLOB APP_FILES
        beast.hpp
        net.hpp
        main.cpp
	NetContextPool.hpp
	NetContextPool.cpp
        )

add_executable(network ${APP_FILES})

target_link_libraries(network
        PUBLIC
        pthread
        )

